From: Sebastien Lafargue Date: Fri, 25 Oct 2013 17:02:59 +0000 (+0200) Subject: AltTabSwitcherPopup: check the number of items after creating the popup child X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3162 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f3b7f61e54c2cc88326786ade1acf03eff3968f6;p=gnome-shell.git AltTabSwitcherPopup: check the number of items after creating the popup child The popup can be empty if the alt-tab switcher is configured in workspace-only mode, even if there are applications running. https://bugzilla.gnome.org/show_bug.cgi?id=710745 --- diff --git a/js/ui/altTab.js b/js/ui/altTab.js index 779ae7b55..b39cc817e 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -106,6 +106,8 @@ const AppSwitcherPopup = new Lang.Class({ this._switcherList = new AppSwitcher(apps, this); this._items = this._switcherList.icons; + if (this._items.length == 0) + return false; return true; }, @@ -375,6 +377,9 @@ const WindowSwitcherPopup = new Lang.Class({ this._switcherList = new WindowList(windows, mode); this._items = this._switcherList.icons; + if (this._items.length == 0) + return false; + return true; },